package com.ruoyi.client.pojo.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class GoodsQueryPageForm {

    @ApiModelProperty(value = "页码", position = 1)
    private Integer pageNum;

    @ApiModelProperty(value = "页大小", position = 2)
    private Integer pageSize;

    @ApiModelProperty(value = "店铺ID", position = 3)
    private Long storeId; // 用于按店铺筛选（非必填，按需传递）

    @ApiModelProperty(value = "分类名称", position = 4) // 新增：分类名称筛选字段
    private String categoryName;

    @ApiModelProperty(value = "关键字", position = 5)
    private String keyword;

    @ApiModelProperty(value = "状态(0下架/1在售)", position = 6)
    @Range(min = 0, max = 1, message = "status只能是0或1")
    private Integer status;

    @ApiModelProperty(value = "排序方式", position = 7)
    private String orderBy;
}